<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Proyecto de Matemática Discreta 2 - Parte II: DINIC: Fichero Fuente network/network.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generado por Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="UNCBL.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Proyecto de Matemática Discreta 2 - Parte II: DINIC</div>
   <div id="projectbrief">Cálculo de flujo maximal sobre un network aplicando el algoritmo de Dinic</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;principal</span></a></li>
      <li><a href="annotated.html"><span>Estructuras&#160;de&#160;Datos</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Buscar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;de&#160;archivos</span></a></li>
      <li><a href="globals.html"><span>Globales</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('network_2network_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">network/network.h</div>  </div>
</div>
<div class="contents">
<a href="network_2network_8h.html">Ir a la documentación de este archivo.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00004"></a>00004 <span class="preprocessor">#ifndef NETWORK_H</span>
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define NETWORK_H</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;node.h&quot;</span>
<a name="l00008"></a>00008 
<a name="l00009"></a><a class="code" href="network_2network_8h.html#ad31e68d883a56c6c3dfc7a6d63591805">00009</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structs_network.html">sNetwork</a> *<a class="code" href="copia_2network_2network_8h.html#ad31e68d883a56c6c3dfc7a6d63591805">network</a>;
<a name="l00010"></a>00010 
<a name="l00015"></a>00015 network <a class="code" href="copia_2network_2network_8c.html#a9180750065e74c1d1c16da870f9374c5">network_create</a>(<span class="keywordtype">void</span>);
<a name="l00016"></a>00016 
<a name="l00022"></a>00022 network <a class="code" href="copia_2network_2network_8c.html#a34cd014ea5f9e7f943c96801014afc52">network_destroy</a>(network net);
<a name="l00023"></a>00023 
<a name="l00031"></a>00031 <span class="keywordtype">void</span> <a class="code" href="copia_2network_2network_8c.html#a383a49dc961cf354aaed2d3c186f7e0d">network_addEdge</a>(network net, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> label1,
<a name="l00032"></a>00032                      <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> label2, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> cap);
<a name="l00033"></a>00033 
<a name="l00040"></a>00040 <span class="keywordtype">void</span> <a class="code" href="copia_2network_2network_8c.html#a404de942df8d4a2e6a5ccbc7b40f106c">network_addNode</a>(network net, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="copia_2dinic__dfs_8c.html#a87153e55cbe7ac23707bcb05e4b6dc5a">label</a>);
<a name="l00041"></a>00041 
<a name="l00047"></a>00047 <a class="code" href="structs_node.html">node</a> <a class="code" href="copia_2network_2network_8c.html#a1045f341ab878f2e4fb9592a36207c25">network_getNode</a>(network net, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="copia_2dinic__dfs_8c.html#a87153e55cbe7ac23707bcb05e4b6dc5a">label</a>);
<a name="l00048"></a>00048 
<a name="l00055"></a>00055 <a class="code" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *<a class="code" href="copia_2network_2network_8c.html#a5094a09ef2e200e1c3cf6435e2590183">network_getNeighbors</a>(<span class="keyword">const</span> network net, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="copia_2dinic__dfs_8c.html#a87153e55cbe7ac23707bcb05e4b6dc5a">label</a>);
<a name="l00056"></a>00056 
<a name="l00063"></a>00063 <a class="code" href="copia_2glib_2glist_8h.html#a840db0c80fb4e0a1fc6dfc0c18450da2">GList</a> *<a class="code" href="copia_2network_2network_8c.html#a9164a5f1cb042678150efe0bd55c52a9">network_getBackwardNeighbors</a>(<span class="keyword">const</span> network net,
<a name="l00064"></a>00064                                     <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="copia_2dinic__dfs_8c.html#a87153e55cbe7ac23707bcb05e4b6dc5a">label</a>);
<a name="l00065"></a>00065 
<a name="l00074"></a>00074 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="copia_2network_2network_8c.html#affabecb9e02c812449bc587d15b264e6">network_edgeCap</a>(<span class="keyword">const</span> network net, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> label_a,
<a name="l00075"></a>00075                              <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> label_b);
<a name="l00076"></a>00076 
<a name="l00085"></a>00085 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="copia_2network_2network_8h.html#a42b119431192f4b42832433eb4ffb41c">network_edgeFlow</a>(<span class="keyword">const</span> network net, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> label_a,
<a name="l00086"></a>00086                              <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> label_b);
<a name="l00087"></a>00087 
<a name="l00094"></a>00094 <span class="keywordtype">bool</span> <a class="code" href="copia_2network_2network_8c.html#acaaa736a97111e6146b93731e318741a">network_nodeExists</a>(<span class="keyword">const</span> network net, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="copia_2dinic__dfs_8c.html#a87153e55cbe7ac23707bcb05e4b6dc5a">label</a>);
<a name="l00095"></a>00095 
<a name="l00103"></a>00103 <span class="keywordtype">bool</span> <a class="code" href="copia_2network_2network_8c.html#a44757b2cf683f83d30dcc8892cae59b6">network_edgeExists</a>(<span class="keyword">const</span> network net, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> label_a,
<a name="l00104"></a>00104                         <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> label_b);
<a name="l00105"></a>00105 
<a name="l00110"></a>00110 <span class="keywordtype">void</span> <a class="code" href="copia_2network_2network_8c.html#aabee1c829638e5470daf30070c6fb002">network_initializeLevels</a>(network net);
<a name="l00111"></a>00111 
<a name="l00116"></a>00116 <span class="keywordtype">void</span> <a class="code" href="copia_2network_2network_8c.html#ad85317f8e8a23faf02aae5de12efc1ab">network_printFlow</a>(network net);
<a name="l00117"></a>00117 
<a name="l00118"></a>00118 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="network_2network_8h.html">network.h</a>      </li>
      <li class="footer">Generado el Lunes, 6 de Junio de 2011 20:03:18 para Proyecto de Matemática Discreta 2 - Parte II: DINIC por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Estructuras de Datos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>&apos;typedefs&apos;</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>&apos;defines&apos;</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>
